package com.example.shirospringboot.service.placeService;

import com.example.shirospringboot.mapper.PlaceMapper;
import com.example.shirospringboot.pojo.Place;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PlaceServiceImpl implements PlaceService{

    @Autowired
    PlaceMapper placeMapper;

    @Override
    public List<Place> queryAllPlaceByClientId(int id) {
        return placeMapper.queryAllPlaceByClientId(id);
    }

    @Override
    public Place queryPlaceById(int id) {
        return placeMapper.queryPlaceById(id);
    }

    @Override
    public int updatePlaceById(Place place) {
        return placeMapper.updatePlaceById(place);
    }
}
